-- GENERATED SPELL FOR [Mature Silkwing] --


function spell0_21839(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(32914,pUnit)
pUnit:RegisterEvent('Sorts_21839', 1000, 1)
end

function Sorts_21839(pUnit, Event)
local choix_sorts_21839 = math.random(0, 0)
if choix_sorts_21839 == 0 then
pUnit:RegisterEvent('spell0_21839', 1, 1)
end
end

function mob21839_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21839', math.random(1500, 3000), 1)
end

function mob21839_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21839_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21839_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21839, 1, 'mob21839_Action')
RegisterUnitEvent(21839, 2, 'mob21839_Leave')
RegisterUnitEvent(21839, 3, 'mob21839_Kill')
RegisterUnitEvent(21839, 4, 'mob21839_Die')
